<!DOCTYPE html>
<html>
<head>
    <title>门店库存交易明细表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("storeStockMaterialIo:storestockmaterialio:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("storeStockMaterialIo:storestockmaterialio:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("storeStockMaterialIo:storestockmaterialio:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">单据号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.ticketsNo" placeholder="单据号"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">耗材id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.materialId" placeholder="耗材id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">耗材数量</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.materialQuantity" placeholder="耗材数量"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单位</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.unit" placeholder="单位"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">仓库id</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.stockId" placeholder="仓库id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存交易类型：1.采购入库2.红冲3.盘存4.销售出库5.盘亏6.生产消耗7.调拨入库8.调拨出库9.数据迁移10.采购退货</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.type" placeholder="库存交易类型：1.采购入库2.红冲3.盘存4.销售出库5.盘亏6.生产消耗7.调拨入库8.调拨出库9.数据迁移10.采购退货"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">库存交易方向(1增加,-1减少)</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.direction" placeholder="库存交易方向(1增加,-1减少)"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">单位成本</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.unitCost" placeholder="单位成本"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">总成本金额</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.totalCost" placeholder="总成本金额"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否已参与成本计算</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.calculated" placeholder="是否已参与成本计算"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建人</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.createName" placeholder="创建人"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">备注</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.remark" placeholder="备注"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">删除标记:0.正常1.标记删除</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="storeStockMaterialIo.del" placeholder="删除标记:0.正常1.标记删除"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/storeStockMaterialIo/storestockmaterialio.js?_${.now?long}"></script>
</body>
</html>